package com.hsgene.order.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * 订单相关错误码
 *
 * @author wangbing
 * @version 1.0, 2018/8/7
 */
public enum OrderErrorCode implements ErrorCode {

    /**
     * 订单不存在
     */
    ORDER_IS_NOT_SIGN(13001, "ORDER_IS_NOT_SIGN", "订单没有标记，请先标记再发放积分"),
    ORDER_SIGN_IS_NOT_CONFIRM(13001, "ORDER_SIGN_IS_NOT_CONFIRM", "订单标记没有确认，请先确认再发放积分"),
    ORDER_NOT_EXISTED(13001, "Error_Order_Not_Existed", "订单不存在"),
    ORDER_INFO_IS_NOT_COMPLETE(13001, "ORDER_INFO_IS_NOT_COMPLETE", "订单信息不完善，请先补全信息再审核报告"),
    ORDER_NOT_SUPPORT_SECOND_COMPLETE(13001, "ORDER_NOT_SUPPORT_SECOND_COMPLETE", "当前订单不支持二次补全操作"),
    ORDER_SECOND_COMPLETE_IS_ERROR(13001, "ORDER_SECOND_COMPLETE_IS_ERROR", "订单二次补全失败"),
    ORDER_PDF_INFO_IS_ERROR(13001, "ORDER_PDF_INFO_IS_ERROR", "获取订单报告信息失败"),
    ORDER_NOT_PAY(23001, "ORDER_NOT_PAY", "订单未付款"),
    ORDER_DELETE_IS_ERROR(13001, "ORDER_DELETE_IS_ERROR", "订单删除失败"),
    ORDER_POINT_IS_SEND(13001, "ORDER_POINT_IS_SEND", "当前订单积分已处理"),
    ORDER_POINT_IS_ERROR(13001, "ORDER_POINT_IS_ERROR", "订单积分发放失败"),
    SAMPLE_ID_NOT_EXISTED(13001, "SAMPLE_ID_NOT_EXISTED", "样本ID不存在"),

    SAMPLE_TYPE_UNDEFINED(13001, "SAMPLE_TYPE_UNDEFINED", "样本类型未定义"),

    /**
     * 商品未上架，不能购买
     */
    GOODS_MALL_NOT_ONLINE(13002, "Error_Order_Goods_Mall_Not_Online", "商品未上架，不能购买"),

    /**
     * 商品库存不足
     */
    GOODS_MALL_INVENTORY_NOT_ENOUGH(13003, "Error_Order_Goods_Mall_Inventory_Not_enough", "商品库存不足"),

    /**
     * 用户状态异常，不能购买
     */
    CUSTOMER_STATUS_EXCEPTION(13004, "Error_Order_Customer_Status_exception", "用户状态异常，不能购买"),

    /**
     * 预订单信息不存在
     */
    PRE_ORDER_NOT_EXISTED(13005, "Error_Order_Pre_Order_Not_Existed", "预订单信息不存在"),

    /**
     * 获取客户订单出错
     */
    ORDER_QUERY_ERROR(13006, "ORDER_QUERY_ERROR", "获取客户订单出错"),
    ORDER_STATISTICS_ERROR(13006, "ORDER_STATISTICS_ERROR", "获取订单统计信息出错"),

    /**
     * 优惠券已过期，不能使用
     */
    COUPON_EXPIRED(13007, "Order_Error_Coupon_Expired", "优惠券已过期，不能使用"),

    /**
     * 优惠券已使用
     */
    COUPON_USED(13008, "Order_Error_Coupon_User", "优惠券已使用"),

    /**
     * 订单不满足满减条件
     */
    COUPON_FULL_REDUCTION_NOT_MATCH(13009, "Order_Error_Coupon_Full_Reduction_Not_Match", "订单不满足满减条件，优惠券无法使用"),

    /**
     * 订单收货地址为空
     */
    EMPTY_CONSIGN_ADDRESS(13010, "Order_Error_Empty_Consign_Address", "订单收货地址为空"),

    /**
     * 订单状态异常
     */
    ORDER_STATUS_EXCEPTION(13011, "Error_Order_Status_Exception", "订单状态异常"),
    ORDER_CONFIRMED_EXCEPTION(13011, "ORDER_CONFIRMED_EXCEPTION", "订单确认异常"),
    ORDER_EXCEPTION(13011, "ORDER_EXCEPTION", "订单异常"),
    QUERY_ORDER_STATUS_EXCEPTION(13011, "QUERY_ORDER_STATUS_EXCEPTION", "订单状态查询异常"),
    ORDER_TEST_IMAGE_IS_NOT_NULL(13011, "ORDER_TEST_IMAGE_IS_NOT_NULL", "手写检测申请单的检测图片不能为空"),
    ORDER_TEST_APPLY_IS_NOT_NULL(13011, "ORDER_TEST_APPLY_IS_NOT_NULL", "订单检测申请单类型不能为空"),
    /**
     * 已失效的订单不能支付
     */
    ORDER_STATUS_PAY_FOR_DISABLED(13012, "Error_Order_Status_Pay_For_Disabled", "已失效的订单不能支付"),

    /**
     * 已取消的订单不能支付
     */
    ORDER_STATUS_PAY_FOR_CANCELED(13013, "Error_Order_Status_Pay_For_Canceled", "已取消的订单不能支付"),

    /**
     * 已支付的订单不能再次支付
     */
    ORDER_STATUS_PAY_FOR_PAID(13014, "Error_Order_Status_Pay_For_Paid", "已支付的订单不能再次支付"),

    /**
     * 订单支付信息不存在
     */
    ORDER_PAYMENT_NOT_EXISTED(13015, "Error_Order_Payment_Not_Existed", "订单支付信息不存在"),

    /**
     * 订单支付信息状态异常
     */
    ORDER_PAYMENT_STATUS_EXCEPTION(13016, "Error_Order_Payment_Status_Exception", "订单支付信息状态异常"),

    /**
     * 获取子订单补充信息出错
     */
    ORDER_ITEM_SUPPLEMENT_ERROR(130017, "ORDER_ITEM_SUPPLEMENT_ERROR", "获取子订单补充信息出错"),

    /**
     * 更新子订单补充信息出错
     */
    ORDER_ITEM_SUPPLEMENT_UPDATE_ERROR(130018, "ORDER_ITEM_SUPPLEMENT_UPDATE_ERROR", "更新子订单补充信息出错"),

    /**
     * 更新子订单快递信息出错
     */
    ORDER_ITEM_DELIVER_GOODS_ERROR(130019, "ORDER_ITEM_DELIVER_GOODS_ERROR", "更新子订单快递信息出错"),

    /**
     * 商品关联的原始商品状态异常
     */
    ORDER_GOODS_ORIGIN_STATUS_EXCEPTION(13020, "Error_Order_Goods_Origin_Status_Exception", "商品关联的原始商品状态异常"),

    /**
     * 查询订单详情失败
     */
    QUERY_ORDER_DETAILS_IS_ERROR(13021, "QUERY_ORDER_DETAILS_IS_ERROR", "查询订单详情失败"),

    /**
     * 订单号不能为空
     */
    ORDER_NUMBER_IS_NOT_NULL(13022, "ORDER_NUMBER_IS_NOT_NULL", "订单号不能为空"),

    /**
     * 编辑订单详情失败
     */
    EDITE_ORDER_IS_ERROR(13023, "EDITE_ORDER_IS_ERROR", "编辑订单详情失败"),

    /**
     * 更新订单状态失败
     */
    UPDATE_ORDER_STATUS_IS_ERROR(13024, "UPDATE_ORDER_STATUS_IS_ERROR", "更新订单状态失败"),

    /**
     * 此订单发票信息已存在
     */
    ORDER_INVOICE_EXISTENCE_ERROR(13025, "ORDER_INVOICE_EXISTENCE_ERROR", "此订单发票信息已存在"),

    /**
     * 获取发票信息出错
     */
    ORDER_INVOICE_QUERY_ERROR(13026, "ORDER_INVOICE_QUERY_ERROR", "获取发票信息出错"),

    /**
     * 获取发票信息出错
     */
    ORDER_INVOICE_INSERT_ERROR(13027, "ORDER_INVOICE_INSERT_ERROR", "获取发票信息出错"),

    /**
     * 主键为空
     */
    PRIMARY_KEY_NOT_EXISTED(13028, "primary_key_not_existed", "主键为空"),

    /**
     * 已经存在
     */
    ALREADY_EXISTS(13029, "already_exists", "已经存在"),

    /**
     * 操作失败
     */
    OPERATION_FAILED(13030, "operation_failed", "操作失败"),

    /**
     * 查询商城列表信息出错
     */
    ORDER_ITEM_PAGE_ERROR(13031, "ORDER_ITEM_PAGE_ERROR", "查询商城列表信息出错"),

    /**
     * 订单缺少耗材信息
     */
    ORDER_SPECIFICATION_EMPTY(13021, "Error_Order_Specification_Empty", "订单缺少耗材信息"),

    /**
     * 查询订单回收站出错
     */
    ORDER_RECYCLE_PAGE_ERROR(13033, "ORDER_RECYCLE_PAGE_ERROR", "查询订单回收站出错"),

    /**
     * 订单套餐更换信息不存在
     */
    ORDER_INTERCHANGE_NOT_EXISTED(13034, "Error_Order_Interchange_Not_Existed", "订单套餐更换信息不存在"),

    /**
     * 客户没有确认知情同意书
     */
    CUSTOMER_NOT_CONFIRMED(13035, "Error_Order_Customer_Not_Confirmed", "客户没有确认知情同意书"),

    ORDER_INTERCHANGE_REPAID_NO_NEED(13036, "Error_Order_Interchange_Repaid_No_Need", "套餐变更补款已完成或不需要补款"),

    ORDER_PACKAGE_NOT_EXISTED(13037, "Error_Order_Package_Not_Existed", "订单套餐信息不存在"),

    ORDER_ADDITION_A_NOT_EXISTED(13037, "Error_Order_Addition_A_Not_Existed", "订单附件信息不存在"),

    ORDER_REPORT_NOT_EXISTED(13038, "Error_Order_Report_Not_Existed", "检测报告不存在"),

    ORDER_REFUND_NOT_PERMISSION(13039, "Error_Order_Refund_Not_Permission", "只有处于待地管确认、样本待签收、报告待上传状态的非商城订单可以进行退款操作"),

    ORDER_REFUND_NOT_EXISTED(13040, "Error_Order_Refund_Not_Existed", "退款申请信息不存在"),

    ORDER_REFUND_AUDIT_DUPLICATE(13040, "Error_Order_Refund_Audit_Duplicate", "退款申请已进行过审核，请勿重复审核"),

    ORDER_STATUS_EXCEPTION_FOR_RECEIPT(13041, "Error_Order_Status_Exception_For_Receipt", "订单当前状态不允许进行确认收货操作"),

    ORDER_STATUS_EXCEPTION_FOR_DELIVERY_TO_SERVANT(13042, "Error_Order_Status_Exception_For_Delivery_To_Servant",
            "订单当前状态不允许寄送材料给地服"),

    ORDER_INTERCHANGE_STATUS_EXCEPTION(13043, "Error_Order_Interchange_Status_Exception", "订单变更信息状态异常"),

    ORDER_ORIGIN_PACKAGE_NOT_EXISTED(13044, "Error_Order_Origin_Package_Not_Existed", "订单原始套餐信息不存在"),

    ORDER_MATERIAL_SIGN_EXCEPTION(13045, "Error_Order_Material_Sign_Exception", "材料签收失败：%s"),

    ORDER_SAMPLE_SIGN_EXCEPTION(13046, "Error_Order_Sample_Sign_Exception", "样本签收失败：%s"),

    ORDER_REFUND_ORIGIN_NOT_SUPPORTED(13047, "Error_Order_Refund_Origin_Not_Supported", "当前暂只支持对非商城来源订单进行退款操作"),

    ORDER_REFUND_PACKAGE_ZERO(13048, "Error_Order_Refund_Package_Zero", "退款总金额不能为零！"),

    ORDER_REFUND_PACKAGE_NO_PERMISSION(13049, "Error_Order_Refund_Package_No_Permission", "以下套餐不满足退款条件，请重新选择退款套餐！%s"),

    ORDER_POSTPONE_REPORT_NOT_UPLOAD(13050, "Error_Order_Postpone_Report_Not_Upload", "订单套餐未上传检测报告"),

    ORDER_NOT_POSTPONE(13051, "Error_Order_Not_Postpone", "订单未超期检测"),

    ORDER_INTERCHANGE_NONE_PERMISSION(13052, "Error_Order_Interchange_None_Permission", "订单未进行套餐变更或套餐变更已确认"),

    ORDER_PACKAGE_CHANGE_NO_CONFIRM(13053, "ORDER_PACKAGE_CHANGE_NO_CONFIRM", "套餐变更未确认"),

    ORDER_PACKAGE_CHANGE_NO_SUPPLEMENT(13054, "ORDER_PACKAGE_CHANGE_NO_SUPPLEMENT", "套餐变更未补款"),

    ORDER_INTERCHANGE_AMOUNT_EXCEPTION(13055, "Error_Order_Interchange_Amount_Exception", "订单补款支付金额不正确"),

    ORDER_AUTO_RECEIPT_NOT_GENESHOP(13056, "Error_Order_Auto_Receipt_Not_Geneshop", "非商城订单不予许执行自动收货操作"),

    ADD_ORDER_IS_ERROR(50009, "ADD_ORDER_IS_ERROR", "订单提交失败"),
    PATIENT_NAME_IS_NOT_NULL(50002, "PATIENT_NAME_IS_NOT_NULL", "患者姓名信息不能为空"),
    PATIENT_SEX_IS_NOT_NULL(50003, "PATIENT_SEX_IS_NOT_NULL", "患者性别信息不能为空"),
    PATIENT_CANCERS_IS_NOT_NULL(50004, "PATIENT_CANCERS_IS_NOT_NULL", "患者疾病信息不能为空"),
    TEST_PURPOSE_IS_NOT_NULL(50005, "TEST_PURPOSE_IS_NOT_NULL", "检测目的和检查结果不能为空"),
    RESERVER_TIME_IS_NOT_NULL(50006, "RESERVER_TIME_IS_NOT_NULL", "预约检测时间不能为空"),
    PRODUCT_IS_NOT_NULL(50007, "PRODUCT_IS_NOT_NULL", "套餐信息不能为空"),
    PRODUCT_IS_NOT_EXIST(50007, "PRODUCT_IS_NOT_EXIST", "套餐信息不存在"),
    PRODUCT_ID_IS_NOT_NULL(50007, "PRODUCT_ID_IS_NOT_NULL", "套餐ID不能为空"),
    USER_IS_NOT_NULL(50008, "USER_IS_NOT_NULL", "用户不能为空"),
    TOTAL_MONEY_IS_NOT_NULL(50008, "TOTAL_MONEY_IS_NOT_NULL", "总价和佣金不能为空"),
    QUERY_DISEASE_IS_ERROR(50010, "QUERY_DISEASE_IS_ERROR", "获取疾病信息失败"),
    PAGINATION_IS_NOT_NULL(50011, "PAGINATION_IS_NOT_NULL", "分页条件不能为空"),
    AGENCY_ID_IS_NOT_NULL(50012, "AGENCY_ID_IS_NOT_NULL", "检测机构id不能为空"),
    AGENCY_ORDER_ERROR(50013, "AGENCY_ORDER_ERROR", "机构订单列表查询出错"),
    PATIENT_PHONE_IS_NOT_NULL(50011, "PATIENT_PHONE_IS_NOT_NULL", "患者联系方式不能为空"),
    DISEASE_IS_NOT_NULL(50012, "DISEASE_IS_NOT_NULL", "疾病不能为空"),
    CLINICAL_DIAGNOSIS_IS_NOT_NULL(50013, "CLINICAL_DIAGNOSIS_IS_NOT_NULL", "临床诊断不能为空"),
    PARAMS_IS_NOT_NULL(50014, "PARAMS_IS_NOT_NULL", "参数不能为空"),
    CASE_TYPE_IS_NOT_NULL(50014, "CASE_TYPE_IS_NOT_NULL", "病例类型不能为空"),
    UPDATE_ORDER_IS_ERROR(50015, "UPDATE_ORDER_IS_ERROR", "订单完善失败"),
    IMAGE_COUNT_IS_LONG(50016, "IMAGE_COUNT_IS_LONG", "样本图片数量不能超过5"),
    SAMPLE_BARCODE_IS_EXISTS(50017, "SAMPLE_BARCODE_IS_EXISTS", "样本编码已经存在，请重新输入"),
    PATIENT_IS_NOT_NULL(50001, "PATINT_IS_NOT_NULL", "患者信息不能为空"),
    PATIENT_AGE_IS_NOT_NULL(50001, "PATIENT_AGE_IS_NOT_NULL", "患者年龄不能为空"),
    AGENCY_REQUISITION_ERROR(50014, "AGENCY_REQUISITION_ERROR", "机构申请单查询出错"),
    USER_INFO_IS_NOT_NULL(50019, "USER_INFO_IS_NOT_NULL", "用户信息异常"),
    DATA_INFO_IS_NOT_NULL(50020, "DATA_INFO_IS_NOT_NULL", "数据信息异常"),
    WHITE_COUNT_IS_NOT_NULL(50021, "WHITE_COUNT_IS_NOT_NULL", "白片数量不能为空"),
    DOCOTOR_ID_IS_NOT_NULL(50022, "DOCOTOR_ID_IS_NOT_NULL", "医生不能为空"),
    DOCOTOR_ID_IS_NOT_EXIST(50023, "DOCOTOR_ID_IS_NOT_EXIST", "医生不存在"),
    DOCOTOR_STATUS_ERROR(50024, "DOCOTOR_STATUS_ERROR", "非正式医生不可下单"),
    DOCOTOR_IS_NOT_EXCHANGE(50025, "DOCOTOR_IS_NOT_EXCHANGE", "医生已经修改过一次，不可再次修改"),
    PAY_TYPE_IS_ERROR(50026, "PAY_TYPE_IS_ERROR", "付款类型错误"),
    PAY_TYPE_IS_NOT_NULL(50027, "PAY_TYPE_IS_NOT_NULL", "付款类型不能为空"),
    HOSPITAL_CODE_IS_NOT_NULL(50028, "HOSPITAL_CODE_IS_NOT_NULL", "医院编码不能为空"),
    EXPRESS_IS_ERROR(50029, "EXPRESS_IS_ERROR", "查询物流信息异常"),
    EXPRESS_DELIVERY_IS_NOT_NULL(50030, "EXPRESS_DELIVERY_IS_NOT_NULL", "物流编号不能为空"),
    EXPRESS_DATE_IS_NOT_NULL(50031, "EXPRESS_DATE_IS_NOT_NULL", "物流日期不能为空"),
    EXPRESS_RETURN_IMAGE_IS_NOT_NULL(50032, "EXPRESS_RETURN_IMAGE_IS_NOT_NULL", "快递回单不能为空"),
    IMAGE_IS_NOT_NULL(50033, "IMAGE_IS_NOT_NULL", "样本图片不能为空"),
    EXPRESS_RETURN_IMAGE_IS_LONG(50034, "EXPRESS_RETURN_IMAGE_IS_LONG", "快递回单图片不能超过5"),
    CONSUMABLES_IS_NOT_NULL(50035, "CONSUMABLES_IS_NOT_NULL", "耗材信息不能为空"),
    CONSUMABLES_ID_IS_NOT_NULL(50036, "CONSUMABLES_IS_NOT_NULL", "耗材ID不能为空"),
    GOODS_AMOUNT_IS_TO_MANY(50037, "GOODS_AMOUNT_IS_TO_MANY", "耗材使用数量不能超过库存数量"),
    TESTING_ORDER_CANCEL_IS_NOT_NULL(50038, "TESTING_ORDER_CANCEL_IS_NULL", "检验订单取消不能为空"),
    ACTION_CODE_IS_NOT_NULL(50039, "ACTION_CODE_IS_NOT_NULL", "操作代码不能为空"),
    CANCEL_REASON_IS_NOT_NULL(50040, "CANCEL_REASON_IS_NOT_NULL", "取消原因不能为空"),
    ORDER_NO_IS_NOT_NULL(50041, "ORDER_NO_IS_NOT_NULL", "检验订单编号不能为空"),
    TESTING_ORDER_CANCEL_IS_ERROR(50042, "TESTING_ORDER_CANCEL_IS_ERROR", "检验订单取消失败"),
    ORDER_ID_IS_NOT_NULL(50043, "ORDER_ID_IS_NOT_NULL", "订单ID不能为空"),
    GET_BASE_INFO_IS_ERROR(50044, "GET_BASE_INFO_IS_ERROR", "获取基因检测单基础信息失败"),
    CANCEL_REASON_EXCEED_200(50045, "CANCEL_REASON_EXCEED_200", "取消原因字符大于200"),
    DCW_IS_NOT_NULL(50046, "DCW_IS_NOT_NULL", "请先上传dcw信息"),
    DIFI_INFO_NOT_EXISTS(50046, "DIFI_INFO_NOT_EXISTS", "地服信息或者医生不完整"),
    DCW_IS_EXISTS(50047, "DCW_IS_EXISTS", "该订单已上传dcw信息"),
    DCW_UPLOAD_IS_ERROR(50048, "DCW_UPLOAD_IS_ERROR", "dcw上传失败"),
    ENTRY_IS_ERROR(50049, "ENTRY_IS_ERROR", "申请录入失败"),
    CONFIRMED_INFO_IS_NOT_NULL(50050, "CONFIRMED_INFO_IS_NOT_NULL", "确认签收信息不能为空"),
    GET_QRCODE_IS_ERROR(50051, "GET_QRCODE_IS_ERROR", "获取二维码出错"),
    CONFIRMED_RECEIPT_IS_ERROR(50052, "CONFIRMED_RECEIPT_IS_ERROR", "确认签收失败"),
    SYN_TESTORDER_IS_ERROR(50053, "SYN_TESTORDER_IS_ERROR", "同步检测单信息失败"),
    APPLY_ORDER_ERROR(50054, "APPLY_ORDER_ERROR", "申请单创建异常"),
    NOT_FOUND_PATIENT_INFO_CONFIRM_FLAG_BY_ORDER_ID(50055, "NOT_FOUND_PATIENT_INFO_CONFIRM_FLAG_BY_ORDER_ID",
            "没有找到改订单id的患者信息确认标识"),
    PATIENT_INFO_CONFIRM_IS_NULL(50056, "PATIENT_INFO_CONFIRM_IS_NULL", "患者信息确认为空"),
    PATIENT_INFO_CONFIRM_IS_ERROR(50057, "PATIENT_INFO_CONFIRM_IS_ERROR", "患者信息确认失败"),
    PATIENT_INFO_CONFIRM_ID_IS_NULL(50058, "PATIENT_INFO_CONFIRM_ID_IS_NULL", "患者信息确认ID为空"),
    PATIENT_INFO_CONFIRM_ACTION_IS_NULL(50059, "PATIENT_INFO_CONFIRM_ACTION_IS_NULL", "患者信息确认操作为空"),
    PATIENT_INFO_CONFIRM_MOBILE_IS_NULL(50060, "PATIENT_INFO_CONFIRM_MOBILE_IS_NULL", "患者信息确认电话为空"),
    PATIENT_INFO_CONFIRM_MOBILE_IS_ERROR(50061, "PATIENT_INFO_CONFIRM_MOBILE_IS_ERROR", "患者信息确认电话不正确"),
    PATIENT_INFO_CONFIRM_VERIFICATION_IS_NULL(50062, "PATIENT_INFO_CONFIRM_VERIFICATION_IS_NULL", "患者信息确认验证码为空"),
    PATIENT_INFO_CONFIRM_VERIFICATION_IS_ERROR(50063, "PATIENT_INFO_CONFIRM_VERIFICATION_IS_ERROR", "患者信息确认验证码不正确"),
    PATIENT_INFO_CONFIRM_PAGE_IS_ERROR(50069, "PATIENT_INFO_CONFIRM_PAGE_IS_ERROR", "获取患者信息确认页面出错"),
    PATIENT_INFO_CONFIRM_ORDER_NO_IS_NULL(50070, "PATIENT_INFO_CONFIRM_ORDER_NO_IS_NULL", "获取患者信息确认订单号为空"),
    PATIENT_INFO_CONFIRM_OPEN_ID_ISNULL(50071, "PATIENT_INFO_CONFIRM_OPEN_ID_ISNULL", "获取患者信息确认openId为空"),
    PATIENT_INFO_CONFIRM_NOT_FOUND_INFO(50072, "PATIENT_INFO_CONFIRM_NOT_FOUND_INFO", "没有获取到该患者信息"),
    VERIFY_CODE_SEND_IS_ERROR(50073, "VERIFY_CODE_SEND_IS_ERROR", "验证码发送失败"),
    VERIFY_CODE_IS_TIME_OUT(50074, "VERIFY_CODE_IS_TIME_OUT", "验证码超时"),
    USER_ID_IS_NULL(50080, "USER_ID_IS_NULL", "用户ID为空"),
    NAME_IS_NULL(50081, "NAME_IS_NULL", "个人名称和单位名称都为空"),
    GET_INVOICE_IS_ERROR(50082, "GET_INVOICE_IS_ERROR", "获取发票信息出错"),
    INVOICE_IS_NULL(50083, "INVOICE_IS_NULL", "发票信息为空"),
    INSERT_INVOICE_IS_ERROR(50084, "INSERT_INVOICE_IS_ERROR", "新增发票信息出错"),
    PERSON_NAME_IS_EXIST(50085, "NAME_IS_EXIST", "个人名称已经存在"),
    COMPANY_NAME_IS_EXIST(50086, "COMPANY_NAME_IS_EXIST", "单位名称已经存在"),
    TAXES_NO_IS_NULL(50087, "TAXES_NO_IS_NULL", "纳税号为空"),
    TAXES_NO_IS_NON_CONFORMITY(50088, "TAXES_NO_IS_NON_CONFORMITY", "纳税号为15位、18或者20位码"),
    UPDATE_INVOICE_IS_ERROR(50089, "UPDATE_INVOICE_IS_ERROR", "修改发票信息出错"),
    INVOICE_ID_IS_NULL(50090, "INVOICE_ID_IS_NULL", "发票ID为空"),
    DELETE_INVOICE_IS_ERROR(50091, "DELETE_INVOICE_IS_ERROR", "删除发票信息出错"),
    USER_INFO_IS_NULL(50092, "USER_INFO_IS_NULL", "用户信息为空"),
    REMARKS_IS_EXCEED_200(50093, "REMARKS_IS_EXCEED_200", "备注超过200字符"),
    PACKAGEID_NOT_EXISTS(500094, "PACKAGEID_NOT_EXISTS", "套餐信息不存在"),
    PACKAGE_PRICE_IS_ERROR(500094, "PACKAGE_PRICE_IS_ERROR", "套餐价格与真实价格不一致"),
    INVOICE_TYPE_IS_NULL(50095, "INVOICE_TYPE_IS_NULL", "发票类型为空"),
    IS_DEFAULT_IS_NULL(50096, "IS_DEFAULT_IS_NULL", "默认类型为空"),
    DELETE_FLAG_IS_NULL(50097, "DELETE_FLAG_IS_NULL", "删除标识为空"),
    INVOICE_TYPE_IS_ERROR(50098, "INVOICE_TYPE_IS_ERROR", "发票类型应为0或1"),
    IS_DEFAULT_IS_ERROR(50099, "IS_DEFAULT_IS_ERROR", "默认类型应为0或1"),
    DELETE_FLAG_IS_ERROR(50100, "DELETE_FLAG_IS_ERROR", "删除标识应为0或1"),
    GET_GENETIC_INVOICE_BY_ID_IS_ERROR(50101, "GET_GENETIC_INVOICE_BY_ID_IS_ERROR", "根据id获取发票信息出错"),
    ENTERPRISE_SEAL_VOUCHER_IS_NULL(50102, "ENTERPRISE_SEAL_VOUCHER_IS_NULL", "企业盖章凭证为空"),
    ORDER_SUBMIT_IS_ERROR(50103, "ORDER_SUBMIT_IS_ERROR", "提交订单失败"),
    ORDER_PACKAGE_IS_EXPIRED(50104, "ORDER_PACKAGE_IS_EXPIRED", "订单套餐已过期"),
    CONSUMABLES_CCOUNT_IS_NOT_NULL(50105, "CONSUMABLES_CCOUNT_IS_NOT_NULL", "耗材使用数量不能为空"),
    CONSUMABLES_CCOUNT_IS_NOT_ZERO(50106, "CONSUMABLES_CCOUNT_IS_NOT_ZERO", "耗材使用数量不能为0"),
    EXPRESS_COMPANY_IS_NOT_NULL(50107, "EXPRESS_COMPANY_IS_NOT_NULL", "快递公司不能为空"),
    ORDER_CANCER_INFO_IS_NOT_NULL(50108, "ORDER_CANCER_INFO_IS_NOT_NULL", "订单取消信息不能为空"),
    ORDER_CANCER_IS_ERROR(50109, "ORDER_CANCER_IS_ERROR", "订单取消失败"),
    ORDER_COMMIT_IS_ERROR(50110, "ORDER_COMMIT_IS_ERROR", "订单评论失败"),
    CONFIRM_ORDER_IS_ERROR(50200, "CONFIRM_ORDER_IS_ERROR", "确认订单出错"),
    CONSIGNEE_ADDRESS_ID_IS_NULL(50201, "CONSIGNEE_ADDRESS_ID_IS_NULL", "收件人地址id为空"),
    TESTER_ADDRESS_ID_IS_NULL(50202, "TESTER_ADDRESS_ID_IS_NULL", "检测人地址id为空"),
    PATIENT_SEX_IS_NULL(50203, "PATIENT_SEX_IS_NULL", "检测人性别为空"),
    PATIENT_SEX_IS_ERROR(50204, "PATIENT_SEX_IS_ERROR", "检测人性别应为0或1"),
    TESTING_PROOF_IMAGES_URLS_IS_NULL(50205, "TESTING_PROOF_IMAGES_URLS_IS_NULL", "检测证明为空"),
    TESTING_PROOF_IMAGES_URLS_EXCEED_4(50206, "TESTING_PROOF_IMAGES_URLS_EXCEED_4", "检测证明超过4张"),
    DELIVERY_METHOD_IS_NULL(50207, "DELIVERY_METHOD_IS_NULL", "配送方式为空"),
    BUYER_MESSAGE_EXCEED_200(50208, "BUYER_MESSAGE_EXCEED_200", "买家留言超过200个字符"),
    SUM_PRICE_IS_NULL(50209, "SUM_PRICE_IS_NULL", "总价为空"),
    SUM_PRICE_IS_ERROR(50210, "SUM_PRICE_IS_ERROR", "总价不是带两位小数的非负数"),
    DISCOUNT_PRICE_IS_ERROR(50211, "DISCOUNT_PRICE_IS_ERROR", "优惠价格不是带两位小数的非负数"),
    HAVE_BEEN_DELETED(50212, "HAVE_BEEN_DELETED", "该条发票信息已经被删除"),
    QUERY_DCW_INFO_IS_ERROR(500213, "QUERY_DCW_INFO_IS_ERROR", "获取dcw信息异常"),
    SAMPLE_TYPE_IS_NOT_NULL(500214, "SAMPLE_TYPE_IS_NOT_NULL", "样本类型不能为空"),
    PACKAGE_ORDER_SIGN_IS_NULL(50215, "PACKAGE_ORDER_SIGN_IS_NULL", "套餐订单标记信息不能为空"),
    PACKAGE_ORDER_SIGN_IS_ERROR(50216, "PACKAGE_ORDER_SIGN_IS_ERROR", "套餐订单标记只可能为1或2"),
    UPDATE_PACKAGE_ORDER_SIGN_IS_ERROR(50217, "UPDATE_PACKAGE_ORDER_SIGN_IS_ERROR", "修改套餐订单标记出错"),
    PACKAGE_ORDER_LOCK_IS_NULL(50218, "PACKAGE_ORDER_SIGN_IS_NULL", "套餐订单标记不能为空"),
    PACKAGE_ORDER_LOCK_IS_ERROR(50219, "PACKAGE_ORDER_SIGN_IS_ERROR", "套餐订单标记只可能为0或1"),
    UPDATE_PACKAGE_ORDER_LOCK_IS_ERROR(50220, "UPDATE_PACKAGE_ORDER_SIGN_IS_ERROR", "修改套餐订单标记出错"),
    GET_ALL_AGENCIES_IS_ERROR(50221, "QUERY_ALL_AGENCIES_IS_ERROR", "获取所有机构出错"),
    UPDATE_PLATFORM_ORDER_IS_ERROR(50222, "UPDATE_PLATFORM_ORDER_IS_ERROR", "修改平台订单信息出错"),
    DOCTOR_ID_IS_NULL(50223, "DOCTOR_ID_IS_NULL", "医生id不能为空"),
    DOCTOR_NAME_IS_NULL(50224, "DOCTOR_NAME_IS_NULL", "医生姓名不能为空"),
    DOCTOR_PHONE_IS_NULL(50225, "DOCTOR_PHONE_IS_NULL", "医生电话不能为空"),
    UPDATE_PLATFORM_ORDER_DOCTOR_IS_ERROR(50225, "UPDATE_PLATFORM_ORDER_DOCTOR_IS_ERROR", "修改平台订单医生出错"),
    UPDATE_PLATFORM_ORDER_TYPE_IS_ERROR(50226, "UPDATE_PLATFORM_ORDER_TYPE_IS_ERROR", "修改平台订单类型有误"),
    PLATFORM_ORDER_STATUS_NOT_IN_STATUS(50227, "PLATFORM_ORDER_STATUS_NOT_IN_STATUS", "订单状态不是待确认样本或待上传报告状态"),
    GROUND_SERVANT_ID_IS_NULL(50228, "GROUND_SERVANT_ID_IS_NULL", "地服id为空"),
    QUERY_DOCTORS_BY_GROUND_SERVANT_ID_IS_ERROR(50229, "QUERY_DOCTORS_BY_GROUND_SERVANT_ID_IS_ERROR", "根据地服id获取医生信息出错"),
    QUERY_DOCTORS_IS_ERROR(50230, "QUERY_DOCTORS_IS_ERROR", "查询医生信息出错"),
    ORDER_DOCTOR_HAVE_BEEN_UPDATED(50231, "ORDER_DOCTOR_HAVE_BEEN_UPDATED", "订单医生已经被修改，不能再次被修改"),
    WRONG_STATE_VALUE(50232, "WRONG_STATE_VALUE", "错误的状态值"),
    THE_REPORT_FOR_THIS_ORDER_WAS_NOT_ALL_UPLOADED(50233, "THE_REPORT_FOR_THIS_ORDER_WAS_NOT_ALL_UPLOADED",
            "该订单的报告未上传完"),
    CANCEL_TYPE_IS_NOT_NULL(50234, "CANCEL_TYPE_IS_NOT_NULL", "取消类型不能为空"),
    CANCEL_TYPE_IS_ERROR(50235, "CANCEL_TYPE_IS_ERROR", "取消类型有误"),
    CHARGES_SORT_IS_NOT_NULL(50236, "CHARGES_SORT_IS_NOT_NULL", "价格排序规则不能为空"),
    CHARGES_SORT_IS_ERROR(50237, "CHARGES_SORT_IS_ERROR", "价格排序规则有误"),
    COMMISSION_SORT_IS_NOT_NULL(50238, "COMMISSION_SORT_IS_NOT_NULL", "积分排序规则不能为空"),
    COMMISSION_SORT_IS_ERROR(50239, "COMMISSION_SORT_IS_ERROR", "积分排序规则有误"),
    ORDER_NO_IS_NOT_EXIST(50240, "ORDER_NO_IS_NOT_EXIST", "该订单编号数据库中不存在"),
    PEANUT_SIGN_EXPRESS(50241, "PEANUT_SIGN_EXPRESS", "花生仁签收物流出错"),
    IS_LAST_SIGN_IS_NOT_NULL(50242, "IS_LAST_SIGN_IS_NOT_NULL", "是否最后一次签收不能为空"),
    IS_LAST_SIGN_IS_ERROR(50243, "IS_LAST_SIGN_IS_ERROR", "是否最后一次签收值有误"),
    PLATFORM_IS_NOT_NULL(50244, "PLATFORM_IS_NOT_NULL", "订单平台来源不能为空"),
    PLATFORM_IS_ERROR(50245, "PLATFORM_IS_ERROR", "订单平台来源值有误"),
    BILLING_OBJECT_CANNOT_BE_EMPTY(50246, "BILLING_OBJECT_CANNOT_BE_EMPTY", "结算对象不能为空"),
    AWARDED_SINGLE_IS_ERROR(50247, "AWARDED_SINGLE_IS_ERROR", "已奖励标记出错"),
    ORDER_REFUND_DETAILS_IS_ERROR(50248, "ORDER_REFUND_DETAILS_IS_ERROR", "订单退款详情出错"),
    QUERY_ORDER_UPDATE_BY_ORDER_ID_IS_ERROR(50249, "QUERY_ORDER_UPDATE_BY_ORDER_ID_IS_ERROR", "根据订单id获取订单修改信息出错"),
    ORDER_SOURCE_MUST_BE_PLATFORM(50250, "ORDER_SOURCE_MUST_BE_PLATFORM", "订单来源必须是平台"),
    ORDER_STATUS_IS_NOT_ON_BEHALF_OF_DELIVERY(50251, "ORDER_STATUS_IS_NOT_ON_BEHALF_OF_DELIVERY", "订单状态不是代发货"),
    QUERY_ORDER_UPDATE_REAL_PRICE_BY_ORDER_ID_IS_ERROR(50252, "QUERY_ORDER_UPDATE_REAL_PRICE_BY_ORDER_ID_IS_ERROR",
            "根据订单id获取订单修改实际价格信息出错"),
    ORDER_REAL_PRICE_DTO_IS_NOT_NULL(50253, "ORDER_REAL_PRICE_DTO_IS_NOT_NULL", "订单实际价格信息对象不能为空"),
    REAL_PRICE_IS_NOT_NULL(50254, "ORDER_REAL_PRICE_DTO_IS_NOT_NULL", "订单套餐实际价格不能为空"),
    REAL_PRICE_IS_POSITIVE_NUMBER(50255, "REAL_PRICE_IS_POSITIVE_NUMBER", "实际价格只能为正数"),
    UPDATE_ORDER_REAL_PRICE_IS_ERROR(50256, "UPDATE_ORDER_REAL_PRICE_IS_ERROR", "修改订单实际价格信息出错"),
    ORDER_ORIGIN_MUST_BE_PEANUT(50257, "ORDER_ORIGIN_MUST_BE_PEANUT", "该订单来源必须是花生仁或者金琉璃"),
    GET_PLATFORM_ORDER_DETAILS_IS_ERROR(50258, "GET_PLATFORM_ORDER_DETAILS_IS_ERROR", "获取平台订单详情出错"),
    DETECTION_COST_CANNOT_BE_EMPTY(50259, "DETECTION_COST_CANNOT_BE_EMPTY", "没有成本的信息不能结算"),
    CANNOT_BE_EMPTY_IF_NOT(50260, "CANNOT_BE_EMPTY_IF_NOT", "未通过原因不能为空"),
    MOLECULAR_TEST_RESULTS_CANNOT_BE_EMPTY(50261, "MOLECULAR_TEST_RESULTS_CANNOT_BE_EMPTY", "分子检测结果不能为空"),
    TEST_REPORT_CANNOT_BE_EMPTY(50262, "TEST_REPORT_CANNOT_BE_EMPTY", "检测报告不为空"),
    ORDER_ORIGIN_MUST_BE_PEANUT_OR_GOLD_COLORED_GLASS(50263, "ORDER_ORIGIN_MUST_BE_PEANUT_OR_GOLD_COLORED_GLASS",
            "该订单来源必须是花生仁或者金琉璃"),
    CONFIRM_PATIENT_INFO_IS_ERROR(50264, "CONFIRM_PATIENT_INFO_IS_ERROR", "确认患者信息出错"),
    ORDER_DOCTOR_CANNOT_CHANGED(50265, "ORDER_DOCTOR_CANNOT_CHANGED", "来源于因子网的订单不允许更换医生"),
    PLATFORM_MUST_BE_CONSOLE_OR_PEANUT(50266, "PLATFORM_MUST_BE_CONSOLE_OR_PEANUT", "订单操作来源必须是后台或者花生仁"),
    TOTAL_MONEY_MUST_BE_POSITIVE_NUMBER(50267, "TOTAL_MONEY_MUST_BE_POSITIVE_NUMBER", "订单总金额必须为正数"),
    DOCTOR_VAL_MUST_BE_0_99_INTEGER(50268, "DOCTOR_VAL_MUST_BE_POSITIVE_NUMBER", "医生经验值必须是0-99整数"),
    GROUND_VAL_MUST_BE_0_99_INTEGER(50269, "GROUND_VAL_MUST_BE_POSITIVE_NUMBER", "地服经验值必须是0-99整数"),
    SIGN_REASON_IS_NOT_NULL(50270, "SIGN_REASON_IS_NOT_NULL", "标记原因不能为空"),
    SIGN_PROOF_IS_NOT_NULL(50271, "SIGN_PROOF_IS_NOT_NULL", "标记凭证不能为空"),
    STATUS_MUST_BE_IN_SIGN_STATUS(50272, "STATUS_MUST_BE_IN_SIGN_STATUS",
            "订单状态必须在待收款、订单待完善（待补全）、待地管确认、样本待确认、报告待上传状态才能标记"),
    PACKAGE_PRICE_SUM_MUST_EQUAL_ORDER_PRICE(50273, "PACKAGE_PRICE_SUM_MUST_EQUAL_ORDER_PRICE",
            "套餐修改价格之和需要等于订单实收金额，请重新修改"),
    PACKAGE_IDS_IS_NOT_NULL(50274, "PACKAGE_IDS_IS_NOT_NULL", "套餐id不能为空"),
    PACKAGE_CHARGES_IS_NOT_NULL(50275, "PACKAGE_CHARGES_IS_NOT_NULL", "套餐价格不能为空"),
    SIGN_PROOFS_MORE_THAN_5(50276, "SIGN_PROOFS_MORE_THAN_5", "标记凭证最多五张"),
    SORT_FIELD_IS_ERROR(50277, "SORT_FIELD_IS_ERROR", "排序字段有误"),
    ORDER_START_TIME_CAN_NOT_BEFORE_ORDER_END_TIME(50278, "ORDER_START_TIME_CAN_NOT_BEFORE_ORDER_END_TIME", "下单开始时间不能大于下单结束时间"),
    CHANGE_PACKAGE_NOT_CONFIRMED(50279,"CHANGE_PACKAGE_NOT_CONFIRMED","变更套餐未确认，不能上传报告"),
    ORDER_IS_NOT_COMPLETED(50280,"ORDER_IS_NOT_COMPLETED","订单未完善，%s为空"),
    ORDER_IS_NOT_COMPLETED_DOCTOR_CAN_NOT_CHANGE(50281,"ORDER_IS_NOT_COMPLETED_DOCTOR_CAN_NOT_CHANGE","订单未完善，医生不能修改"),
    CONFIRM_THE_CHANGE_FIRST(50282,"CONFIRM_THE_CHANGE_FIRST","请先将套餐确认变更");

    private final int code;

    private final String message;

    private final String description;

    OrderErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
